﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using Xms.Abp.BackgroundJob;
using Xms.Abp.Modularity;
using Xms.Abp.ObjectMapping;

namespace BackgroundJobManagement;

[DependsOn(
    typeof(BackgroundJobManagementDomainSharedModule),
    typeof(XmsAbpBackgroundJobsModule),
    typeof(XmsAbpObjectMappingModule)
    )]
public class BackgroundJobManagementDomainModule : XmsModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddAutoMapperObjectMapper<BackgroundJobManagementDomainModule>();
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddProfile<BackgroundJobManagementDomainAutoMapperProfile>();
        });
    }
}
